# -*- coding:utf-8 -*-
# -------------------------------------------------------------------------------
# Description:  
# Reference:
# Author: 安智军
# Date:   2021/12/13
# -------------------------------------------------------------------------------
import time
import PageLocators.PagePurchaseReceiptOrderLoc
from PageLocators.PageReturnReceiptOrderLoc import ReturnReceiptOrderLocPageLoc as loc
from Common.Base import Base
from Common.GetLog import GetLog

log = GetLog.get_logger()


class ReturnReceiptOrder(Base):
    # 退货入库订单

    def click_and_enter_ReturnReceiptOrderPage(self):
        '''
        点击并进入退货订单管理界面
        :return:
        '''
        # time.sleep(2)
        # log.info("点击采购入库订单菜单")
        # self.base_click(loc.click_Purchase_receipt_order_menu)
        time.sleep(2)
        log.info("点击退货入库订单菜单")
        self.base_click(loc.ReturnReceiptOrder_menu)
        time.sleep(2)

    def page_click_creatB2Corder_btn(self):
        '''
        登录成功后点击切换仓库切换到作业端
        :return:
        '''
        log.info("点击创建B2C订单")
        print("点击创建B2C订单")
        time.sleep(2)
        self.base_click(loc.click_creatB2Corder_btn)
        time.sleep(2)
